﻿using UnityEngine;
using System.Collections;

public class LogicalBoardManager : MonoBehaviour {


    /// <summary>
    /// This is an example of a design-time LogicalBoard. 
    /// Other behaviors can grab the logicalBoard property from
    /// this component and manipulate it.
    /// 
    /// Tools can be added to this behavior as well, theoretically.
    /// </summary>

    public int width = 12;
    public int height = 8;

    public LogicalBoard logicalBoard = null;

    void InitializeBoard()
    {
        if (logicalBoard == null)
        {
            logicalBoard = new LogicalBoard(width, height);
        }
    }
    

	// Use this for initialization
	void Start () {
        InitializeBoard();
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public City GetCity()
    {
        InitializeBoard();
        return logicalBoard.city;
    }
}
